package com.sls.game.dao;

import com.sls.game.page.Pagination;
import com.sls.game.pojo.SuppliersInfo;
import com.sls.game.pojo.SuppliersManageParameter;

/**
 * 
 * @description 供应商管理DAO
 * @author Wangxuegang
 * @date 2012-9-12
 * 
 */
public interface SuppliersManageDAO {
	/**
	 * 供应商新增
	 * 
	 * @param suppliersInfo
	 */
	public void insert(SuppliersInfo suppliersInfo);

	/**
	 * 供应商修改
	 * 
	 * @param suppliersInfo
	 */
	public void update(SuppliersInfo suppliersInfo);

	/**
	 * 查询供应商最大Id值
	 * 
	 */
	public String query();

	/**
	 * 根据供应商ID查询某条记录
	 * 
	 * @param supplyId
	 */
	public SuppliersInfo queryBySupplyId(String supplyId);

	/**
	 * 供应商分页查询
	 * 
	 * @param pageInruire
	 * @param baseQuery
	 * @return
	 */
	public Pagination<SuppliersInfo> queryPaginationList(
			SuppliersManageParameter pageInruire);

	/**
	 * 根据供应商名称查询
	 * 
	 * @param supplyName
	 * @return
	 */
	public String queryBySupplyName(String supplyName);
}
